package com.ruoyi.test_tree.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 设备用途对象 device_purpose
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public class DevicePurpose extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 用途ID */
    private Long purposeId;

    /** 用途名 */
    @Excel(name = "用途名")
    private String purposeName;

    public void setPurposeId(Long purposeId) 
    {
        this.purposeId = purposeId;
    }

    public Long getPurposeId() 
    {
        return purposeId;
    }

    public void setPurposeName(String purposeName) 
    {
        this.purposeName = purposeName;
    }

    public String getPurposeName() 
    {
        return purposeName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purposeId", getPurposeId())
            .append("purposeName", getPurposeName())
            .append("parentId", getParentId())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
